<template>
  <div id="app">
    <keep-alive>
      <router-view/>
    </keep-alive>
    <tabbar slot="bottom"></tabbar>
  </div>
</template>
<script>
import Tabbar from '@/components/Tabbar'

export default {
  components: {
    Tabbar
  },
  data () {
    return {

    }
  },
  created () {
    console.log(this)
    let clientHeight = document.body.clientHeight
    console.log(clientHeight)
    this.$store.commit({
      type: 'setClientHeight',
      height: clientHeight
    })
    this.$store.commit({
      type: 'setPeriodHeight',
      height: clientHeight - 143
    })
  },
  methods: {

  }
}
</script>
<style lang="less">
  @import "~vux/src/styles/reset.less";
  @import "~vux/src/styles/1px.less";
  @import "~vux/src/styles/close.less";
  html,
  body {
    width: 100%;
    height: 100%;
  }
  .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
  #app {
    width: 100%;
    height: 100%;
    .periods {
      text-align: center;
      font-size: 17px;
      padding: 8px 10px;
      position: relative;
      &::after {
        content: "";
        position: absolute;
        right: 0;
        width: 2px;
        height: 25px;
        background: #78edd7;
      }
    }
    .weui-search-bar {
      background-color: #fff;
      border: 0;
      &::after {
        border: 0;
      }
      .weui-search-bar__form {
        background-color: #f5f5f5;
      }
      .weui-search-bar__label {
        background-color: #f5f5f5;
      }
    }
  }
</style>
